package util;

import geometry.ColorPoint;
import geometry.Point;
import geometry.Segment;

import java.util.StringTokenizer;

public class Dispatcher {

	
	
	public Dispatcher() {
		
	}
	
	public Object type(String obj){
		
		/*
		StringTokenizer objectString = new StringTokenizer(obj, ";"); 
		String className = objectString.nextToken();
		
		String field = "";
		StringTokenizer fieldString;
		while(objectString.hasMoreTokens()){
			field = objectString.nextToken();
			fieldString = new StringTokenizer(field, ":");
			String fieldType = fieldString.nextToken();
			
		}
		*/
		
//		if(className.equals("Point"))
//			return new Point();
//		else if(className.equals("ColorPoint"))
//			return new ColorPoint();
//		else if(className.equals("Segment"))
//			return new Segment();
	
		return null;
	}
}
